//
//  FYAlertTooler.h
//  FYAgent
//
//  Created by 于龙 on 15/11/20.
//  Copyright © 2015年 Foryou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FYMessageView.h"

typedef void(^BtnClickBlock)(NSInteger tag);
typedef void(^WarnBtnClickBlock)(BOOL success);
typedef void(^DismissBlock)(BOOL success);

@interface FYAlertTooler : NSObject

@property (nonatomic, copy) BtnClickBlock    block;
@property (nonatomic, copy) WarnBtnClickBlock    wblock;
@property (nonatomic, copy) DismissBlock    disblock;

- (void)dismissAnimation:(void (^)(BOOL success))complete;

+ (FYAlertTooler *)sharedInstance;

/**
 *  弹出强提示(非属性文字)
 *
 *  @param title  标题；可以为空
 *  @param msg    内容：可以为空
 *  @param titles 按钮：数组或者字符串
 *  @param click  点击事件
 */
- (void)showAlertTitle:(NSString *)title
               message:(NSString *)msg
             btnTitles:(id)titles
            btnClicked:(void(^)(NSInteger index))click;


/**
 *  弹出强提示(属性文字)
 *
 *  @param title  标题；可以为空
 *  @param msg    内容：可以为空
 *  @param titles 按钮：数组或者字符串
 *  @param click  点击事件
 */
- (void)showAlertTitle:(NSString *)title
          attributeMsg:(NSAttributedString *)msg
             btnTitles:(id)titles
            btnClicked:(void(^)(NSInteger))click;


/**
 *  弹出强提示,带问号的
 *
 *  @param title  标题；可以为空
 *  @param msg    内容：可以为空
 *  @param titles 按钮：数组或者字符串
 *  @param click  点击事件
 */
- (void)showAlertWithWarningBtnTitle:(NSString *)title
                             message:(NSString *)msg
                           btnTitles:(id)titles
                          btnClicked:(void (^)(NSInteger))click
                      warnBtnClicked:(void (^)(BOOL))warnclick;
@end

 